#include <iostream>
#include <sstream>
#include <cstdlib>
#include <string>

using namespace std;

int main ()
{
	const char* input = "89910";
	cout << "Inputted Decimal: " << input << endl;
	
	stringstream stream1;
	stream1 << input;
	int length = stream1.str().length();
	cout << "length = " << length << endl;

	int integer;
	stream1 >> integer;
	cout << "Integer Value: " << integer << endl;
	
	char converted[length];
	sprintf(converted, "%X", integer);
	cout << "Converted Number (Hex): " << converted << endl;

	return 0;
}
	
